package com.hong.taotaomall.mapper;

import com.hong.taotaomall.dto.GoodsDto;
import com.hong.taotaomall.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 商品管理 Mapper 接口
 * </p>
 *
 * @author hong
 * @since 2023-03-25
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    @Select("select * from goods where name like CONCAT('%',#{value},'%')   order by name")
    List<Goods> getValue(String value);
}
